//
//	LaunchSplash.m
//
//	Create by 曹 曹 on 19/10/2016
//	Copyright © 2016. All rights reserved.
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport



#import "LaunchSplash.h"

NSString *const kLaunchSplashChannelId = @"channelId";
NSString *const kLaunchSplashEndTime = @"endTime";
NSString *const kLaunchSplashImgUrl = @"imgUrl";
NSString *const kLaunchSplashSid = @"sid";
NSString *const kLaunchSplashStartTime = @"startTime";
NSString *const kLaunchSplashTitle = @"title";

@interface LaunchSplash ()
@end
@implementation LaunchSplash




/**
 * Instantiate the instance using the passed dictionary values to set the properties values
 */

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
	self = [super init];
	if(![dictionary[kLaunchSplashChannelId] isKindOfClass:[NSNull class]]){
		self.channelId = dictionary[kLaunchSplashChannelId];
	}	
	if(![dictionary[kLaunchSplashEndTime] isKindOfClass:[NSNull class]]){
		self.endTime = [dictionary[kLaunchSplashEndTime] integerValue];
	}

	if(![dictionary[kLaunchSplashImgUrl] isKindOfClass:[NSNull class]]){
		self.imgUrl = dictionary[kLaunchSplashImgUrl];
	}	
	if(![dictionary[kLaunchSplashSid] isKindOfClass:[NSNull class]]){
		self.sid = dictionary[kLaunchSplashSid];
	}	
	if(![dictionary[kLaunchSplashStartTime] isKindOfClass:[NSNull class]]){
		self.startTime = [dictionary[kLaunchSplashStartTime] integerValue];
	}

	if(![dictionary[kLaunchSplashTitle] isKindOfClass:[NSNull class]]){
		self.title = dictionary[kLaunchSplashTitle];
	}	
	return self;
}
@end